package com.cwf.basic.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegUtils {
    public static boolean regexpIsTrue(String reg,String str){
        Pattern pattern = Pattern.compile(reg);
        Matcher matcher = pattern.matcher(str);
        return matcher.matches();
    }
}
